import request from '@/utils/request'

export function allProblemList (query)  {
  return request({
    url: 'system/problem/list',
    method: 'get',
    params: query
  })
}

// 删除用户
export function deleteProblem(id) {
  return request({
    url: 'system/problem/' + id,
    method: 'delete'
  })
}

export function changeExchangeStatus(id, status) {
  return request({
    url: '/system/problem/changeStatus',
    method: 'get',
    params:
      {
        exchangeId: id,
        status: status
      }
  })
}
